<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Spaz</title>

<script type="text/javascript" src="assets/AIRAliases.js"></script>

<script src="assets/spaz.debug.js"  type="text/javascript"></script>
<script src="assets/spaz.info.js"   type="text/javascript"></script>
<script src="assets/spaz.prefs.js"  type="text/javascript"></script>
<script src="assets/spaz.update.js" type="text/javascript"></script>
<script src="assets/spaz.bridge.js" type="text/javascript"></script>
<script src="assets/spaz.menus.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/spaz.notify.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/spaz.ui.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/library.swf" type="application/x-shockwave-flash"></script>

	

<!-- Firebug lite -->
<script language="javascript" type="text/javascript" src="assets/firebug/firebug.js"></script>



</head>

<body onload="rootInit()">
	<!-- <iframe style="width:100%;height:100%;top:0px;left:0px;position:absolute;border:none;"
		src="index.html" sandboxRoot="https://fakedomain.air/" documentRoot="app-resource:/"
		onload="Spaz.Bridge.$init(this)"></iframe> -->
	<iframe style="width:100%;height:100%;top:0px;left:0px;position:absolute;border:none;"
		src="index.html" onload="Spaz.Bridge.$init(this)"></iframe>
</body>
</html>
<script>

function rootInit() {
	
	
	window.htmlLoader.manageCookies = false;
	window.htmlLoader.paintsDefaultBackground = false;
	window.htmlLoader.cacheResponse = false;
	window.htmlLoader.useCache = false;
	
	air.URLRequestDefaults.manageCookies = false;
	air.URLRequestDefaults.cacheResponse = false;
	air.URLRequestDefaults.useCache = false;
	
	if (Spaz.Prefs.handleHTTPAuth) {
		air.trace('Turning ON HTTPAuth handling')
		window.htmlLoader.authenticate = true;
	} else {
		air.trace('Turning OFF HTTPAuth handling')
		window.htmlLoader.authenticate = false;
	}
	
	
	// apply dropshadow to window
	air.trace('Applying Flash Filter Dropshadow');
	window.htmlLoader.filters = window.runtime.Array(
		new window.runtime.flash.filters.DropShadowFilter(3,90,0,.8,6,6)
		// new window.runtime.flash.filters.ColorMatrixFilter([0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0, 0, 0, 1, 0]),
		// new window.runtime.flash.filters.GradientBevelFilter(4.0, 45, [0xFF0000, 0xCC0000, 0x000000], [1, 0, 1], [0, 128, 255], 4.0, 4.0, 1, 1, "inner", false)
	);
		//new window.runtime.flash.filters.ColorMatrixFilter(([-1, 0, 0, 0, 255, 0, -1, 0, 0, 255, 0, 0, -1, 0, 255, 0, 0, 0, 1, 0]))

	if (Spaz.Prefs.showNativeMenus) {
		air.trace('Initializing NativeMenus')
		Spaz.Menus.initAll();
		air.trace('Done initializing NativeMenus')
	}

	air.trace('root init end')
	
}

</script>